package com.ahearttogo.rpc.server;

import com.aharttogo.rpc.transport.HttpTransportServer;
import com.aharttogo.rpc.transport.TransportServer;
import com.ahearttogo.rpc.codec.Decoder;
import com.ahearttogo.rpc.codec.Encoder;
import com.ahearttogo.rpc.codec.JsonDecoder;
import com.ahearttogo.rpc.codec.JsonEncoder;
import lombok.Data;

/**
 *  server 配置
 * @author xiejialin
 * @date 2020/2/17 3:34 PM
 */
@Data
public class RpcServerConfig {

    private Class<? extends TransportServer> transportClass = HttpTransportServer.class;

    private Class<? extends Encoder> encoderClass = JsonEncoder.class;

    private Class<? extends Decoder> decoderClass = JsonDecoder.class;

    private int port = 3000;


}
